package org.jinyan.admin.model;

import org.jinyan.utils.Md5;

public class MyUser {

	private String useruuid;
	private String username;
	private String password;
	private String email;
	private String usertype;

	public String getUseruuid() {
		return useruuid;
	}

	public void setUseruuid(String useruuid) {
		this.useruuid = useruuid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		password = Md5.md5s(password + "jinyankeji");
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUsertype() {
		return usertype;
	}

	public void setUsertype(String usertype) {
		this.usertype = usertype;
	}

	public String toSqlSr() {
		// TODO Auto-generated method stub
		return "INSERT INTO `user` VALUES ('" + this.useruuid + "', '"
				+ this.username + "','" + this.password + "', '" + this.email
				+ "', '5');";
	}

}
